<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/login}" th:method="post">
    zh<input type="text" name="username" id="username">
    mi<input type="password" name="password" id="password">
    <button type="submit">Submit</button>
</form>
<label>
    <input type="checkbox" name="rememberme"> 记住我
</label>
<button type="submit">登录</button>
<p th:if="${param.error}">用户名或密码错误，登录失败！</p>

</body>
</html>